<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .fu {
      /*  使所有的子元素,具有行内块的特性,一行排列有宽高 */
      display: flex;
      background-color: aqua;
      /* 设置子类元素排列的方式  left center,right ,space-around子类元素左右空间一样 
      space-between 左右顶头,中间均分,space-evenly每个元素左右等距
      */
      justify-content:space-around
    }

    .son {
      border: 1px solid #ccc;
      width: 100px;
      height: 100px;
    }

    span {
      width: 100px;
      height: 100px;
      border: 1px solid #ccc;
    }

    /* p{background-color: aqua; width: 100px;} */
  </style>
</head>

<body>
  <div class="fu">
    <div class="son">div1</div>
    <div class="son">div2</div>
    <div class="son">div3</div>
    <span>我是sapn</span>
  </div>

  <!-- <p>我是p标签</p> -->
</body>

</html>